﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace Agresso.Interface.Layer.Domain
{
    public class DaDeskAccount
    {
        public long DaDeskAccount_id;
        public string AccountCode = "";
        public string AgrAccountCode = "";

        public DaDeskAccount() { }
        public DaDeskAccount(SqlDataReader rd)
        {
            DaDeskAccount_id = Convert.ToInt32(rd["DaDeskAccount_id"]);
            AccountCode = rd["AccountCode"] is DBNull ? AccountCode : rd["AccountCode"].ToString();
            AgrAccountCode = rd["AgrAccountCode"] is DBNull ? AgrAccountCode : rd["AgrAccountCode"].ToString();
        }
    }
}
